<!DOCTYPE html>
<html>
<head>
<title></title>
#parse("sys/header.html")
	<style>
		#pageContent {border:1px solid #ddd;position:relative;padding-top:10px}
		#pageContent:before {
			content:'内容';
			position: absolute;
			top: -15px;
			left: 5px;
			background: #FFF;
			height: 30px;
			line-height: 30px;
			width: 35px;
			text-align: center;
			font-weight: bold;}
	</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.keyword" @keyup.enter="query" placeholder="关键字">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("webpageinfo:save"))
			<!-- <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a> -->
			#end
			#if($shiro.hasPermission("webpageinfo:update"))
			<!-- <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a> -->
			#end
			#if($shiro.hasPermission("webpageinfo:delete"))
			<!-- <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a> -->
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">爬虫ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.antBeanId" placeholder="爬虫ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">原地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.url" placeholder="原地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">标题</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.title" placeholder="标题"/>
			    </div>
			</div>
									<div class="form-group hidden" >
			   	<div class="col-sm-2 control-label">内容</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.content" placeholder="内容"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">作者</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.author" placeholder="作者"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">发布时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.date" placeholder="发布时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.createDate" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">截止时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="webpageinfo.jezhiDate" placeholder="截止时间"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>

		<div id="pageContent" class="panel panel-default col-sm-12" style="margin-top:20px;" v-html="webpageinfo.content"></div>
	</div>
</div>

<script src="${rc.contextPath}/js/ant/webpageinfo.js?_${date.systemTime}"></script>
</body>
</html>